package actions
{
	import loader.LoadProxy;
	import loader.core.LoadType;
	
	import core.actor.core.BoneData;

	public class TestAction extends BaseAction
	{
		public function TestAction()
		{
		}
		
		public function overwriteAni(aniUrl:String):void
		{
			_actor.initAni(aniUrl);
			
		}
		
		
		
		
		protected override function setAni(charType:String):void
		{
			/*var a:Array = [];
			var d:BoneData = new BoneData();
			d.x = 200*Math.random();
			d.y = 200*Math.random();
			var speedx:Number = 4*(0.5-Math.random());
			var speedy:Number = 4*(0.5-Math.random());
			//d.scaleX = d.scaleY = Math.random();
			//d.alpha = Math.random();
			//d.rotation = 360*Math.random();
			d.name = "head";
			a[0] = [d];
			for(var i:int = 1;i<49;i++)
			{
				var d:BoneData = new BoneData();
				d.x = (a[i-1][0] as BoneData).x+speedx;
				d.y = (a[i-1][0] as BoneData).y+speedy;
				//d.scaleX = d.scaleY = Math.random();
				//d.scaleX = d.scaleY  = (a[i-1][0] as BoneData).scaleX; 
				//d.alpha = Math.random();
				//d.rotation = 360*Math.random();
				//d.rotation = (a[i-1][0] as BoneData).rotation;
				d.name = "head";
				a[i] = [d];
			}
			_actor.setAni(a);*/
		}
	}
}